package com.yfp.machine.service.impl;

import com.yfp.machine.domain.MachineEventTrack;
import com.yfp.machine.mapper.MachineEventTrackMapper;
import com.yfp.machine.service.MachineEventTrackService;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;

import java.util.List;

/**
 * (MachineEventTrack)表服务实现类
 *
 *
 * @since 2024-02-01 13:26:54
 */
@Service("machineEventTrackService")
public class MachineEventTrackServiceImpl implements MachineEventTrackService {
    @Resource
    private MachineEventTrackMapper machineEventTrackMapper;

    /**
     * 分页查询
     *
     * @param machineEventTrack 筛选条件
     * @return 查询结果
     */
    @Override
    public List<MachineEventTrack> queryByPage(MachineEventTrack machineEventTrack) {
        return this.machineEventTrackMapper.queryAllByLimit(machineEventTrack);
    }

    @Override
    public List<MachineEventTrack> queryMachineEventTrackByMachineId(String machineId) {
        return this.machineEventTrackMapper.queryMachineEventTrackByMachineId(machineId);
    }
}
